package com.znzz.course.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.znzz.course.R;
import com.znzz.course.entity.Student;

/**
 * 首页功能模块
 */
public class IndexActivity extends AppCompatActivity {
    private ImageView imageView1,imageView2,imageView3;
    private LinearLayout layout1,layout2,layout3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);
        Intent intent = getIntent();
        String studentId = intent.getStringExtra("studentId");
        layout2 = findViewById(R.id.layout2);
        layout3 = findViewById(R.id.layout3);
        layout2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IndexActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
        layout3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IndexActivity.this,MyInformationActivity.class);
                startActivity(intent);
            }
        });
    }
}